package com.zzedu.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzedu.domain.ZzThesaurusWords;
import com.zzedu.dto.ZzThesaurusWordsDTO;
import com.zzedu.enmuns.WordsAttrEnum;
import com.zzedu.params.ZzThesaurusWordsAllParams;
import com.zzedu.vo.ZzThesaurusWordsVO;

import java.util.List;

/**
 * 单词管理Service接口
 *
 * @author Mr.Wang
 * @date 2025-01-29
 */
public interface IZzThesaurusWordsService extends IService<ZzThesaurusWords> {
    /**
     * 构造查询条件
     */
    public LambdaQueryWrapper<ZzThesaurusWords> buildQuery(ZzThesaurusWordsDTO zzThesaurusWordsDTO);

    List<ZzThesaurusWordsVO> convertVO(List<ZzThesaurusWords> zzThesaurusWordsList);

    /**
     * 单条详情
     *
     * @param id
     * @return
     */
    public ZzThesaurusWordsAllParams getFormById(Long id);
    /**
     * 删除词性配置
     *
     * @param id
     * @return
     */
    boolean deleteAttrData(Long id);

    boolean allSaveWords(ZzThesaurusWordsAllParams zzThesaurusWordsParams) throws Exception;


    /**
     * 在线状态 id 单词信息
     * @param ids
     * @return
     */
    List<ZzThesaurusWords> getOnLineByIds(List<Long> ids);
}
